import { message } from 'antd';
import { extend } from 'umi-request';
import { hostName } from './urls';

// 统一请求方法
export const mainHost = extend({
  prefix: `//${hostName}`,
  timeout: 10000,
  credentials: 'include',
});
